<? include("protect1.php"); ?>

<STYLE type=text/css>.blank {
	FONT-SIZE: 0px; WIDTH: 0px; HEIGHT: 0px
}
TD {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
INPUT {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
.present {
	FONT-WEIGHT: bold; BACKGROUND-COLOR: #dee5ec
}
.h1 {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
}
.d1 {
	COLOR: #c0c0c0
}
.link {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: hand; COLOR: #ffffff; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.footer {
	FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.footer1 {
	FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE: url(chat/images/menu_b.gif); CURSOR: default; COLOR: #000000; BORDER-BOTTOM: 0px
}
.header {
	FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE: url(chat/images/menu_h.gif); CURSOR: default; COLOR: #000000; BORDER-BOTTOM: 0px
}
.textcol {
	FONT-SIZE: 12px; COLOR: #2378d5; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
</STYLE>

<?php
	include("banner.html");
	include("connect.php");
	$pilih=mysql_select_db("uwika_krs",$conn);
	$sqlstr="SELECT nama,dosenwali,tempat_lahir,tanggal_lahir FROM biodata where nrp='$reg_uname'";
	$hasil=mysql_query($sqlstr);
	list($bionama,$biokodedsn,$biotmptlhr,$biotgllhr) = mysql_fetch_row($hasil);
	$sqlstr="select nama from dosenwali where kodedsn='$biokodedsn'";
	$hasil=mysql_query($sqlstr);
	list($namadsnwali) = mysql_fetch_row($hasil);
	echo "<br><BR>";
	echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u><b>B I O D A T A &nbsp; P R I B A D I</u></b>";
	echo "<br><BR>";
	echo "<table width=\"100%\" border=\"0\">";
	echo "<tr><td width=\"5%\"></td>";
	echo "<form name=\"savebiodata\" method=\"post\" action=\"savebiodata.php\">";
	echo "<td width=\"15%\"><p align=\"right\">Nama Lengkap :</p></td>";
	echo "<td><input name=\"txtnama\" type=\"text\" maxlength=\"50\" size=\"50\" value=\"$bionama\"></td></tr>";
	echo "<tr><td></td>";
	echo "<td><p align=\"right\">Dosen Wali :</p></td>";
	echo "<td>$namadsnwali</td></tr>";
	echo "<tr><td>&nbsp;</td></tr>";

	//echo "<tr><td></td><td><p align=\"right\">Tempat Lahir :</p></td>";
	//echo "<td><input name=\"txtnama\" type=\"text\" maxlength=\"25\" size=\"25\" value=\"$biotmptlhr\"></td></tr>";

	//echo "<tr><td></td><td><p align=\"right\">Tanggal Lahir :</p></td>";
	//echo "<td><input name=\"txtnama\" type=\"text\" maxlength=\"10\" size=\"10\" value=\"$biotgllhr\"> (tahun-bulan-tanggal)</td></tr>";

	//echo "<tr><td></td><td><p align=\"right\">Jenis Kelamin :</p></td>";
	//echo "<td><input name=\"radiobutton\" type=\"radio\" value=\"L\" checked> Laki-laki "; 
	//echo "<input name=\"radiobutton\" type=\"radio\" value=\"L\"> Perempuan</td></tr>";

	echo "<tr><td>&nbsp;</td></tr>";
	echo "<tr><td width=\"5%\"></td><td></td>";
	echo "<td colspan=2><input name=\"cmdSimpan\" type=\"submit\" value=\"Simpan\">&nbsp;<input type=\"button\" value=\"Batal\" onClick=\"javascript: history.go(-1)\"></td></tr>";
	echo "</table>";
	echo "</form>";
	echo "<br><br>";

	include("footer.php");
?>